package employeedb;

import java.io.*;
import java.util.LinkedList;
/**
 *
 * @author Админ
 */
public class Main {

    public static void main(String[] args) throws FileNotFoundException, IOException {
     LinkedList<Worker> tmp= WorkerIO.readFromFile("input.txt");
      for (int i = 0; i < tmp.size(); i++) {
            tmp.get(i).payroll();
        }
     WorkerHandler.sort(tmp);
     WorkerIO.writeToFile(tmp,"output.txt" );
    }
}
